﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class mdc_Ins_Plan_2 : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } }
        private string _ID;
        public static FieldInfo id = new FieldInfo("mdc_Ins_Plan_2", "ID");

        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } }
        private string _Process;
        public static FieldInfo process = new FieldInfo("mdc_Ins_Plan_2", "Process");

        [Column]
        public int Incident { get { return _Incident; } set { _Incident = value; EntityState.FieldChange("Incident"); } }
        private int _Incident;
        public static FieldInfo incident = new FieldInfo("mdc_Ins_Plan_2", "Incident");

        [Column]
        public string UserName { get { return _UserName; } set { _UserName = value; EntityState.FieldChange("UserName"); } }
        private string _UserName;
        public static FieldInfo userName = new FieldInfo("mdc_Ins_Plan_2", "UserName");

        [Column]
        public int Sheets { get { return _Sheets; } set { _Sheets = value; EntityState.FieldChange("Sheets"); } }
        private int _Sheets;
        public static FieldInfo sheets = new FieldInfo("mdc_Ins_Plan_2", "Sheets");

        [Column]
        public int No { get { return _No; } set { _No = value; EntityState.FieldChange("No"); } }
        private int _No;
        public static FieldInfo no = new FieldInfo("mdc_Ins_Plan_2", "No");

        [Column]
        public string QN_QL { get { return _QN_QL; } set { _QN_QL = value; EntityState.FieldChange("QN_QL"); } }
        private string _QN_QL;
        public static FieldInfo qn_ql = new FieldInfo("mdc_Ins_Plan_2", "QN_QL");

        [Column]
        public string MstrChar_Plant { get { return _MstrChar_Plant; } set { _MstrChar_Plant = value; EntityState.FieldChange("MstrChar_Plant"); } }
        private string _MstrChar_Plant;
        public static FieldInfo mstrchar_plant = new FieldInfo("mdc_Ins_Plan_2", "MstrChar_Plant");

        [Column]
        public string MstrChar_Code{ get { return _MstrChar_Code;} set { _MstrChar_Code = value; EntityState.FieldChange("MstrChar_Code"); } }
        private string _MstrChar_Code;
        public static FieldInfo mstrchar_code = new FieldInfo("mdc_Ins_Plan_2", "MstrChar_Code");

        [Column]
        public string Short_Text_In_Insp_Char { get { return _Short_Text_In_Insp_Char; } set { _Short_Text_In_Insp_Char = value; EntityState.FieldChange("Short_Text_In_Insp_Char"); } }
        private string _Short_Text_In_Insp_Char;
        public static FieldInfo short_text_in_insp_char = new FieldInfo("mdc_Ins_Plan_2", "Short_Text_In_Insp_Char");

        [Column]
        public string Lower_SpecLimit { get { return _Lower_SpecLimit; } set { _Lower_SpecLimit = value; EntityState.FieldChange("Lower_SpecLimit"); } }
        private string _Lower_SpecLimit;
        public static FieldInfo lower_speclimit = new FieldInfo("mdc_Ins_Plan_2", "Lower_SpecLimit");

        [Column]
        public string Upper_SpecLimit { get { return _Upper_SpecLimit; } set { _Upper_SpecLimit = value; EntityState.FieldChange("Upper_SpecLimit"); } }
        private string _Upper_SpecLimit;
        public static FieldInfo upper_speclimit = new FieldInfo("mdc_Ins_Plan_2", "Upper_SpecLimit");

        [Column]
        public string Decimal_Number { get { return _Decimal_Number; } set { _Decimal_Number = value; EntityState.FieldChange("Decimal_Number"); } }
        private string _Decimal_Number;
        public static FieldInfo decimal_number = new FieldInfo("mdc_Ins_Plan_2", "Decimal_Number");

        [Column]
        public string Long_Text { get { return _Long_Text; } set { _Long_Text = value; EntityState.FieldChange("Long_Text"); } }
        private string _Long_Text;
        public static FieldInfo long_text = new FieldInfo("mdc_Ins_Plan_2", "Long_Text");

        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("mdc_Ins_Plan_2", "Time");

        [Column]
        [DefaultInt(0)]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("mdc_Ins_Plan_2", "Status");
    }
}
